<template>
  <div class="bg-light">
    <div class="container-title">基础信息</div>
    <Form ref="form" :rules="rule" :model="form" class="ps">
      <div class="fleft">
        <FormItem style="flex:1" label="门店名称: " prop="name">
          <p>{{ form.storeDTO.storeName }}</p>
        </FormItem>
        <FormItem style="flex:1" label="所在区域: " prop="name">
          <p>{{ (form.storeDTO.provinceName || '')+ (form.storeDTO.cityName || '') + (form.storeDTO.areaName || '') }}</p>
        </FormItem>
      </div>
      <div class="fleft">
        <FormItem style="flex:1" label="营业执照编号: " prop="name">
          <p>{{ form.storeDTO.businessLicenseNo }}</p>
        </FormItem>
        <FormItem style="flex:1" label="详细地址: " prop="name">
          <p>{{ form.storeDTO.storeAddress }}</p>
        </FormItem>
      </div>
      <div class="fleft">
        <FormItem style="flex:1" label="坐标: " prop="name">
          <p>{{ form.storeDTO.storeLatitude }}-{{ form.storeDTO.storeLongitude }}</p>
        </FormItem>
        <FormItem style="flex:1" label="店主生日: " prop="name">
          <p> {{ form.storeDTO.ownerBirthday }}</p>
        </FormItem>
      </div>
      <FormItem style="color:red" label="门店登录手机号: " prop="name">
        <p>{{ form.storeDTO.storePhone }}</p>
      </FormItem>
    </Form>
  </div>
</template>
<script>
// import AreaSelect from '@/components/AreaSelect'
// import AreaTree from '@/components/AreaTree'
// import ImageListUpload from '@/components/ImageListUpload'
// import PictureEditItem from '~/PictureEditItem'
// import FooterBtns from './FooterBtns'

export default {
  components: {
    // AreaSelect,
    // AreaTree,
    // ImageListUpload,
    // PictureEditItem,
    // FooterBtns
  },
  props: {
    form: {
      type: Object
    },
    isShowSignInfo: {
      type: Boolean,
      default: true
    },
    showJudge: {
      type: Boolean,
      default: false
    }
  },

  data () {
    return {
      isValideNo: ''
    }
  },
  computed: {
    sc () {
      return this.form.storeContractDTO || {}
    },
    brandMain () {
      return this.form.storeContractDTO.storeContractBrandDTOList.find(item => item.brandType == 0) || {}
    },
    brandGuanlian () {
      return this.form.storeContractDTO.storeContractBrandDTOList.filter(item => item.brandType == 1) || {}
    }
  },
  mounted () {
  },
  methods: {
    onConfirmNo () {
      this.$ajaxGet(`/store_contract_audit/audit/${this.sc.storeId}/${this.sc.businessLicenseNo}`).then(res => {
        if (res) {
          this.isValideNo = 'success'
        } else {
          this.isValideNo = 'fail'
        }
      })
    }
  }
}
</script>
